package com.gitee.poi.plugin.annotations.core;

import org.apache.poi.hssf.util.HSSFColor;
import org.apache.poi.ss.usermodel.Font;
import org.apache.poi.ss.usermodel.HorizontalAlignment;
import org.apache.poi.ss.usermodel.VerticalAlignment;

import java.lang.annotation.*;

@Retention(RetentionPolicy.RUNTIME)
@Target(ElementType.TYPE)
@Documented
public @interface Title {

    String value();

    boolean bold() default true;

    boolean italic() default false;

    short fontSize() default 16;

    String fontName() default "宋体";

    /**
     * set type of text underlining to use
     * @see org.apache.poi.ss.usermodel.Font#U_NONE
     * @see org.apache.poi.ss.usermodel.Font#U_SINGLE
     * @see org.apache.poi.ss.usermodel.Font#U_DOUBLE
     * @see org.apache.poi.ss.usermodel.Font#U_SINGLE_ACCOUNTING
     * @see org.apache.poi.ss.usermodel.Font#U_DOUBLE_ACCOUNTING
     */
    byte underline() default Font.U_NONE;

    HorizontalAlignment align() default HorizontalAlignment.CENTER_SELECTION;

    VerticalAlignment verticalAlign() default  VerticalAlignment.CENTER;

    HSSFColor.HSSFColorPredefined color() default HSSFColor.HSSFColorPredefined.BLACK;
}
